-- GENERATED SPELL FOR [Galak Stormer] --


function spell0_4097(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4097', 3000, 1)
end

function spell1_4097(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4097', 18000, 1)
end

function Sorts_4097(pUnit, Event)
local choix_sorts_4097 = math.random(0, 1)
if choix_sorts_4097 == 0 then
pUnit:RegisterEvent('spell0_4097', 1, 1)
end
if choix_sorts_4097 == 1 then
pUnit:RegisterEvent('spell1_4097', 1, 1)
end
end

function mob4097_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4097', math.random(1500, 3000), 1)
end

function mob4097_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4097_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4097_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4097, 1, 'mob4097_Action')
RegisterUnitEvent(4097, 2, 'mob4097_Leave')
RegisterUnitEvent(4097, 3, 'mob4097_Kill')
RegisterUnitEvent(4097, 4, 'mob4097_Die')
